package com.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.beans.ShopInfo;
import com.mapper.ShopMapper;
import com.service.ShopService;

@Service @Transactional
public class ShopServiceimpl implements ShopService{
	@Resource @Autowired
	private ShopMapper shopMapper;

	public int add_shop(ShopInfo shop) {
		return shopMapper.add_shop(shop);
	}

	public ShopInfo get_shop(int flowerNo) {
		return shopMapper.get_shop(flowerNo);
	}

	public int del_shop(int flowerNo) {
		return shopMapper.del_shop(flowerNo);
	}

	public int update_shop(ShopInfo shop) {
		return shopMapper.update_shop(shop);
	}

	public List<ShopInfo> select_all() {
		return shopMapper.select_all();
	}
}
